

Ext.Loader.setConfig({
	enabled : true,
	paths   : {
		Bleext : BP+'resources/scripts/desktop/bleextop'
	} 
});

Ext.require("Bleext.modules.login.LoginForm");

Ext.onReady(function(){
	var win = Ext.create("Bleext.modules.login.LoginWindow");
	win.show();
	
	if( Ext.state.Manager.get('username')){
		win.down("textfield[name=username]").setValue(Ext.state.Manager.get('username'));
	}else{
		win.down("textfield[name=username]").emptyText = 'Please enter your user name';
	}
	
	Ext.get("loading").remove();
});